package com.example.springbootlearning.base;

import com.example.springbootlearning.interfaces.BaseErrorInfoInterface;

/**
 * ClassName: ExceptionEnum
 * Package: com.example.springbootlearning.base
 * Package: com.example.springbootlearning.base
 * Desription:
 *
 * @Author: happen
 * @CreateTime: 2024/6/6 14:28
 * @Version: V1.0
 */
public enum ExceptionEnum implements BaseErrorInfoInterface {

    SUCCESS("2000", "成功!"),
    BODY_NOT_MATCH("4000","请求的数据格式不符!"),
    SIGNATURE_NOT_MATCH("4001","请求的数字签名不匹配!"),
    NOT_FOUND("4004", "未找到该资源!"),
    INTERNAL_SERVER_ERROR("5000", "服务器内部错误!"),
    SERVER_BUSY("5003","服务器正忙，请稍后再试!");

    private final String resultCode;
    private final String resultMsg;

    ExceptionEnum(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
